<template>
	<view class="content">
		<view class="list_canting" @click="dindan" v-for="item in list">
			<image :src="item.img"
				style="width: 70rpx; height: 70rpx; margin-left: 10px; margin-top: 15rpx; float: left;"></image>
			<view style="float: left; line-height: 100rpx; margin-left: 10px;">{{item.name}}</view>
			<image src="/static/fh.png"
				style="width: 40rpx; height: 30rpx; float: right; margin-right: 20rpx; margin-top: 35rpx;"></image>
		</view>
		
	</view>
</template>

<script>
	import {

		storeList

	} from '@/request/home.js'
	export default {
		data() {
			return {
				list: []
			}
		},
		onLoad() {
			this.listtab()
		},
		methods: {
			listtab() {
				var that = this
				var params = {
					alipay_user_id: "2088912672015825",
					enterprise_id: 9,
					user_id: 44419,
				}
				storeList(params).then((res) => {
					console.log('成功', res);
                    this.list = res.data.data


				}).catch((err) => {
					console.log('失败', err);
				});

			},
			dindan() {
				uni.navigateTo({
					url: '/pages/index/diancan'
				})
			}
		}
	}
</script>

<style>
	page {
		background: #f3f3f3;
	}

	.list_canting {
		width: 90%;
		height: 100rpx;
		float: left;
		margin-left: 5%;
		background: #fff;
		border-radius: 10px;
		margin-top: 10px;
	}

	</style>